<!DOCTYPE html>
<html>
  <head>
    <title>DylanTheDog</title>
    <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
      <style type="text/css">
        html { height: 100% }
        body { height: 100%; margin: 0; padding: 0 }
        #map-canvas { height: 800px; }
      </style>
  </head>
  <body>
    <div class="wrapper">
      <nav><ul>
        <% if logged_in? %>
          <li><%= link_to 'Create Post', new_post_path %></li>
          <li><%= link_to 'Logout', session_path, :method => :delete %></li>
          <% else %>
          <li><%= link_to 'Sign-Up', new_user_path %></li>
          <li><%=  link_to 'Login', new_session_path %></li>
        <% end %>
        </ul>
      </nav>
        <p>Debug -- user session: <%= debug session[:user_id] %></p>
        <%= yield %>
      
    </div>
    <footer></footer>
  </body>
</html>

